package com.example.viwer3d.control;

import java.util.HashMap;

import com.example.viwer3d.model.Cubo;
import com.example.viwer3d.model.Object3D;
import com.example.viwer3d.model.Piramide;
import com.example.viwer3d.model.Square;
import com.example.viwer3d.model.Triangle;



public class ObjectComand {

	public static HashMap<String, Object3D> selectObject= new HashMap<String, Object3D>(); 
	
	public ObjectComand() {
		super();
		selectObject.put("cubo", new Cubo());
		selectObject.put("piramide", new Piramide());
		selectObject.put("quadrado", new Square());
		selectObject.put("triangulo", new Triangle());
	}
	
	public static Object3D InstanciaPorBotao(String objName){
		return selectObject.get(objName);
	}
}